NULL = 

AUTOMAKE_OPTIONS = subdir-objects

SUBDIRS = \
	po \
	$(NULL)


rob_CFLAGS=`pkg-config --cflags librob-1.0 gtk+-2.0 gmodule-2.0`
rob_LDFLAGS=`pkg-config --libs librob-1.0 gtk+-2.0 gmodule-2.0`


AM_CPPFLAGS = \
	$(ROB_CFLAGS) \
	-include $(CONFIG_HEADER) \
	$(NULL)

BUILT_SOURCES = src/rob.vala.stamp

bin_PROGRAMS = rob

rob_VALASOURCES = \
	src/main.vala \
	src/uifactory.vala \
	$(NULL)

rob_SOURCES = \
	$(rob_VALASOURCES:.vala=.c) \
	$(rob_VALASOURCES:.vala=.h) \
	$(NULL)

src/rob.vala.stamp: $(rob_VALASOURCES)
	$(VALAC) -C --vapidir=$(prefix)/share/vapi --pkg gtk+-2.0 --pkg=gmodule-2.0 --pkg=librob-1.0 --basedir $(top_srcdir) $^
	touch $@

rob_LDADD = \
	$(ROB_LIBS) \
	$(NULL)

EXTRA_DIST = \
	intltool-extract.in \
	intltool-update.in \
	intltool-merge.in \
	$(rob_VALASOURCES) \
	src/rob.vala.stamp \
	$(NULL)

DISTCLEANFILES = \
	intltool-extract \
	intltool-update \
	intltool-merge \
	po/.intltool-merge-cache \
	$(NULL)

